

package com.jf.cloud.biz.dto;

import com.jf.cloud.common.util.PrincipalUtil;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author zz
 * @date 2020/12/30
 */
public class SendAndCheckSmsDTO {

    @Schema(description = "手机号" )
    @Pattern(regexp= PrincipalUtil.MOBILE_REGEXP,message = "请输入正确的手机号")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @Schema(description = "验证码" )
    private String validCode;

    public String getValidCode() {
        return validCode;
    }

    public void setValidCode(String validCode) {
        this.validCode = validCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "SendAndCheckSmsDTO{" +
                "mobile='" + mobile + '\'' +
                ", validCode='" + validCode + '\'' +
                '}';
    }
}
